<?php

use yii\helpers\Html;
use yii\grid\GridView;
use common\models\wechat\WechatPaySetting;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\wechat\models\WechatPaySettingSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = '支付设置';
$this->params['breadcrumbs'][] = $this->title;
?>


<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
              <?= Html::a('返回','javascript:history.back(-1)'); ?>  <?= Html::encode($this->title) ?>
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">
 


<div class="wechat-pay-setting-index">


    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            'payaccount',
            'mchid',
            'apisecret',
            [
                'attribute' =>'status',
                'value' => function($model){
                    return WechatPaySetting::$statuses[$model->status];
                }
            ],

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>
</div>
</div>
</section>
</section>





